import request from '@/utils/request'

export function getRoleInfo() {
  return request({
    url: '/api/system/role/getRoleInfo',
    method: 'post'
  })
}

export function getRoleMenu(data) {
  return request({
    url: '/api/system/role/getRoleMenu',
    method: 'post',
    data
  })
}

export function updateRoleInfo(data) {
  return request({
    url: '/api/system/role/updateRoleInfo',
    method: 'post',
    data
  })
}

export function deleteRoleInfo(data) {
  return request({
    url: '/api/system/role/deleteRoleInfo',
    method: 'delete',
    data
  })
}

export function addRoleInfo(data) {
  return request({
    url: '/api/system/role/addRoleInfo',
    method: 'post',
    data
  })
}

export function updateRoleMenuInfo(data) {
  return request({
    url: '/api/system/role/updateRoleMenuInfo',
    method: 'post',
    data
  })
}

